package com.yuuzai.openworld.framework.movement;

import com.yuuzai.openworld.OpenWorldObject;
import com.yuuzai.openworld.framework.Vector;

public class Controller extends OpenWorldObject {
	
	public boolean isMoving() {
		return !this.current.equals(this.target);
	}
	
	public void move(Vector value) {
		this.current = value;
	}
	
	public void stop() {
		this.setTarget(null);
	}

	/* Definition */
	
	private Vector current, target;
	
	public Vector getTarget() {
		return this.target;
	}
	
	public void setTarget(Vector value) {
		this.target = value;
	}
	
}
